package main

import (
	"github.com/gin-gonic/gin"
	"net/http"
	"seckill/api"
)

func main() {
	router := gin.Default()
	router.GET("", func(ctx *gin.Context) {
		ctx.JSON(http.StatusOK, gin.H{
			"code":    0,
			"message": "成功",
		})
	})
	router.GET("/store", api.SetStore)
	router.GET("/seckill", api.SeckillGoods)
	router.GET("/seckill2", api.SeckillGoods2)
	router.Run(":9000")
}
